package utils;

import java.util.Arrays;

public class ArrayUtils {

    class Solution {

    }
    public void swap(int[] nums, int i, int j) {
        int temp = nums[i];
        nums[i] = nums[j];
        nums[j] = temp;
    }

    public void timeTset() {
        long s1 = System.currentTimeMillis();

        long s2 = System.currentTimeMillis();
        System.out.println("test1:" + (s2 - s1));
        long s3 = System.currentTimeMillis();

        long s4 = System.currentTimeMillis();
        System.out.println("test1:" + (s4 - s3));
    }
    public void preAndPost() {
        int nums[] = ArrayGenerator.getArray(100, 10);
        Solution s = new Solution();
        System.out.println(Arrays.toString(nums));

        System.out.println(Arrays.toString(nums));
    }
}
